import appLogo from '@public/app.jpg';
import wechatLogo from '@public/wechat.png';
import { Badge } from 'antd';
/**
 * 统一参数配置
 */

// 登录权限key
export const AUTH_SECRET_KEY = '733828mtizndu2cshfp1468889281801r9uv0aaji10';

// 高德地图map key
export const AMAP_KEY = 'f390f1e2b0faa95710d00a0801384c41';

// 高德地图js key
export const AMAP_JS_KEY = 'ebb2511fda31f6cbf5c5c9a5d7e84e39';

export const PROCE_STATUS = [
  {
    name: '待审核',
    value: '0',
  },
  {
    name: '通过',
    value: '1',
  },
  {
    name: '不通过',
    value: '2',
  },
];
export const SETTING_FLAG = [
  {
    name: '未结算',
    value: '0',
  },
  {
    name: '已结算',
    value: '1',
  },
];

export const ORDER_STATUS = [
  {
    name: '待支付',
    value: '0',
  },
  {
    name: '已支付',
    value: '1',
  },
  {
    name: '已取消',
    value: '2',
  },
  {
    name: '已完成',
    value: '3',
  },
];
export const GOODS_TYPE = [
  {
    name: '贷款服务',
    value: 'loan',
  },
  {
    name: '信用卡服务',
    value: 'credit',
  },
  {
    name: 'vip充值业务',
    value: 'vip',
  },
  {
    name: '融豆充值业务',
    value: 'bean',
  },
];
export const CHECKED_STATUS = (status) => {
  if (status === '0') {
    return (
      <div style={{ display: 'flex', alignItem: 'center' }}>
        <Badge status="processing" />
        <div style={{ marginLeft: 9 }}>待审核</div>
      </div>
    );
  } else if (status === '1') {
    return (
      <div style={{ display: 'flex', alignItem: 'center' }}>
        <Badge status="success" />
        <div style={{ marginLeft: 9 }}>已通过</div>
      </div>
    );
  } else {
    return (
      <div style={{ display: 'flex', alignItem: 'center' }}>
        <Badge status="error" />
        <div style={{ marginLeft: 9 }}>未通过</div>
      </div>
    );
  }
};
